package y23.May;

public class Add {
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println("两个整数的和是"+add(a,b));
        double i = 1.1;
        double j = 2.2;
        double k = 3.3;
        System.out.println("三个小数的和是"+add(i,j,k));
    }
    public static int add(int a,int b) {
        return a+b;
    }
    public static double add(double i,double j,double k) {
        return i+j+k;
    }
}